//
//  MainHeaderOtherCollectionViewCell.m
//  Bettle
//
//  Created by panhongliu on 2017/1/13.
//  Copyright © 2017年 panhongliu. All rights reserved.
//

#import "MainHeaderOtherCollectionViewCell.h"

@implementation MainHeaderOtherCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
-(void)setModel:(MainCellModel *)model{
    _model = model;
    NSURL *url = [NSURL URLWithString:model.picture];
    NSURL *Url= [NSURL URLWithString:model.advertImage];
    
    [self.titleImageView sd_setImageWithURL:url];
    self.titleLable.text = model.scenicName;
    self.addressLable.text = model.advertId;
    [self.heaerImageview sd_setImageWithURL:Url];
    self.nickName.text = model.advertTitle;
    
    
    
    
}
-(void)setModel2:(MaincellModel2 *)model2{
    _model2 = model2;
    NSURL *url = [NSURL URLWithString:model2.portraitUrl];
    NSURL *url2 = [NSURL URLWithString:model2.advertImage];
    
    [self.heaerImageview sd_setImageWithURL:url];
    [self.titleImageView sd_setImageWithURL:url];
    
    self.addressLable.text = model2.advertId;
    self.titleLable.text   = model2.advertTitle;
    self.nickName.text     = model2.nickName;
    
    
}


@end
